import { _decorator, Component, Node, Sprite, SpriteFrame } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('IslandItem')
export class IslandItem extends Component {

    @property(Sprite)
    title:Sprite = null;
    
    @property(Sprite)
    island:Sprite = null;

    @property(Node)
    lock:Node = null;

    start() {

    }


    set_Island(title_sprf:SpriteFrame , island_sprf:SpriteFrame , lock_num:number){
        if(lock_num >= 0){
            this.lock.active = false;
        }
        this.title.spriteFrame = title_sprf;
        this.island.spriteFrame = island_sprf;
    }
}


